# Begin: Custom macros and commands for all e-mails BEFORE processing log(1,'Begin: Custom macros and commands for all e-mails BEFORE processing'); IME_encrypt = { # Begin: IME encrypt ldap_getcerts('ldaps://directory.<%OEM-EXPL-CORP-DOM%>;;;ou=pki-participant,dc=pki,dc=<%OEM-EXPL-CORP-HOSTNAME%>,dc=tld'); if (smime_keys_avail()) { log(1,'S/MIME certificate available for recipient $to'); if (encrypt_smime('true')) { log(1,'Encryption successful'); } } else { if (!webmail_keys_avail()) { log(1,'no <%OEM-WEBMAIL-GINA%> account available, creating new account'); webmail_keys_gen('','0'); } if (encrypt_webmail()) { log(1,'Encryption successful'); } } # End: IME encrypt }; log(1,'End: Custom macros and commands for all e-mails BEFORE processing'); # End: Custom macros and commands for all e-mails BEFORE processing